#include "QuitScreen.h"
#include "Gfx.h"
#include "ResourceMgr.h"
#include "GfxEffects.h"

#include <iostream>
using namespace std;

QuitScreen *QuitScreen::instance_ = NULL;

void
QuitScreen::
start () {
	GameComponent::start();

	// Blit the quit screen and wait
	Gfx *gfx = Gfx::instance();
	SDL_Surface *disp    = gfx->getScreen();
	SDL_Surface *quit    = ResourceMgr::instance()->getGfx("quit.png");

  //faderChessBoard(quit);
	faderHBreak(quit);
  SDL_Delay(4000);

	//faderPieceBreak();
	switch_to("Halt");
}

void
QuitScreen::
stop () {
	GameComponent::stop();
  faderChessBoard();
  SDL_Delay(1000);
}

